package com.platform.system.mqtt.event;

import com.platform.system.domain.dto.device.DeviceInfoDto;
import org.springframework.context.ApplicationEvent;

/**
 * @author Huangkai
 */
public class DeviceListenerEvent extends ApplicationEvent {
    /**
     * 获取类型
     */
    private Integer type;
    /**
     * 设备信息
     */
    private DeviceInfoDto deviceInfoDto;

    public DeviceListenerEvent(Object source, Integer type, DeviceInfoDto deviceInfoDto) {
        super(source);
        this.type = type;
        this.deviceInfoDto = deviceInfoDto;
    }

    public DeviceInfoDto getDeviceInfoDto() {
        return deviceInfoDto;
    }

    public Integer getType() {
        return type;
    }
}
